<!-- dialog_title="Box Wrapper" -->
<assign insideWidth=#width-3>
<#if box_space>
	<assign bwBox=#insideWidth-11> <!-- width of left edge -->
<#else>
	<assign bwBox=#insideWidth>
<#endif>
<#if box_checkbox>
	<assign titleLeft=24>
<#elseif box_radio>
	<assign titleLeft=24>
<#else>
	<assign titleLeft=6>
<#endif>
	<img src=#boxHeader height=25 width=#insideWidth save=boxHeaderTtl>
	<img src=#boxHeaderTtl i_textm=$(label) i_textsize=16 i_textweight=900 i_textleft=#titleLeft i_texttop=4 i_textcol=#colorDialogText save=boxHeaderTtl>

	<!-- BORDER -->
	<table border=0 cellspacing=0 cellpadding=0>
	<tr>
		<td background=#boxHeader height=25>
			<table>
			<tr>
				<td background=#boxHeaderTtl height=25 width=#insideWidth>
					<table cellspacing=0>
					<tr>
						<td width=#insideWidth-64>
							<#if box_checkbox>
								&nbsp;
								<input type=checkbox name=$(name) alt=$(alt) ascent=8 width=#insideWidth-84 nodrawtext=1>
							<#elseif box_radio>
								<img height=1><br>
								&nbsp;
								<input type=radio bgcolor=#colorDialog nodrawtext=1 name=$(name) alt=$(alt) ascent=8  width=#insideWidth-84>
							<#else>
								&nbsp;
							<#endif>
						</td>
						<td width=64 align=right>
							<img src=#boxHeader i_cropbottom=23 width=30><br>
							<#if box_reset>
								<input type=button name=$(resetName) toolbar=1 width=20 height=20 xpar=#reset grayxpar=#reset fgcolor=#colorIcon fgcolorOver=#colorSelection graycolor=#colorDialogIconGrey img=#fake grayimg=#fake bgcolor=#colorDialog nofade=1 alt=$(resetAlt) ascent=24>
							<#endif>
							<#if box_expand>
								<img src=images/button_grow.png save=expandImg>
								<img src=#boxHeaderSpacer width=2 height=24>
							<#elseif box_collapse>
								<img src=images/button_shrink.png save=expandImg>
								<img src=#boxHeaderSpacer width=2 height=24>
							<#else>
								<img src=#boxHeaderSpacer width=2 height=24>
							<#endif>
							<#if expandMode0>
								<input type=button pickle="{ExpandKeyframeOptions(\"ifs\",0);}" toolbar=1 width=30 height=20 xpar=#expandImg grayxpar=#expandImg fgcolor=#colorIcon fgcolorOver=#colorSelection graycolor=#colorDialogIconGrey img=#fake grayimg=#fake bgcolor=#colorDialog nofade=1 alt=$(expandAlt) ascent=24>
								<img src=#boxHeaderSpacer width=2 height=24>
							<#elseif expandMode1>
								<input type=button pickle="{ExpandKeyframeOptions(\"ifs\",1);}" toolbar=1 width=30 height=20 xpar=#expandImg grayxpar=#expandImg fgcolor=#colorIcon fgcolorOver=#colorSelection graycolor=#colorDialogIconGrey img=#fake grayimg=#fake bgcolor=#colorDialog nofade=1 alt=$(expandAlt) ascent=24>
								<img src=#boxHeaderSpacer width=2 height=24>
							<#elseif expandMode2>
								<input type=button pickle="{ExpandKeyframeOptions(\"ifs\",2);}" toolbar=1 width=30 height=20 xpar=#expandImg grayxpar=#expandImg fgcolor=#colorIcon fgcolorOver=#colorSelection graycolor=#colorDialogIconGrey img=#fake grayimg=#fake bgcolor=#colorDialog nofade=1 alt=$(expandAlt) ascent=24>
								<img src=#boxHeaderSpacer width=2 height=24>
							<#endif>
						</td>						
					</tr>
					</table>
				</td>
			</tr>
			</table>
		</td>
	</tr>	
	<tr>
		<td bgcolor=#colorGroupBox width=#insideWidth>
		
	<!--  end BORDER -->
	<!-- BAR -->
	<#if box_bar>
		<#if box_space>
			<table border=0 cellspacing=0 cellpadding=0>
			<tr>
				<td width=#ds bgcolor=#colorGroupBox></td>
				<td bgcolor=#colorGroupBox width=#bwBox>
					<img height=#ds><br>
		<#endif>			
				<table border=0 cellspacing=0 cellpadding=0>
				<tr>
					<td width=#bwBox bgcolor=#colorGroupBox>
	<#else>
		<img width=#insideWidth height=5 bgcolor=#colorGroupBox save=boxShadow>
	<#if box_toolbar>
		<assign boxBGColor=#colorToolbar>
	<#else>
		<assign boxBGColor=#colorGroupBox>
	<#endif>
	<#if box_space>
		<table border=0 cellspacing=0 cellpadding=0 width=#insideWidth>
		<tr>
			<td width=#ds bgcolor=#colorGroupBox></td>
			<td bgcolor=#colorGroupBox width=#bwBox>
				<img height=#ds><br>
	<#endif>	
				<table border=0 cellspacing=0 cellpadding=0 width=#bwBox>
				<tr>
					<td bgcolor=#boxBGColor width=#bwBox>
	<#endif>
	<!-- end BAR -->
